#ifndef __bus_h__
#define __bus_h__

#include "types.h"

__u8 bus_read_byte (__u32 address);
__u16 bus_read_short(__u32 address);
__u32 bus_read_int(__u32 address);

void bus_write_byte (__u32 address,__u8  dat);
void bus_write_short(__u32 address,__u16 dat);
void bus_write_int(__u32 address,__u32 dat);


void bus_read_line(__u32 address,__u8 * buffer);
void bus_write_line(__u32 address,__u8 * buffer);
void bus_read_bytes(__u32 address,__u8 * buffer,__u32 bytes);
void bus_write_bytes(__u32 address,__u8 * buffer,__u32 bytes);
__u8 bus_inta();




int bus_init();

#endif //__bus_h__